/*
 * Created on 2005-6-29
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.linkage.lcims.base.dao.business.impl;

import java.util.List;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.business.interfaces.ServiceTypeDAO;
import com.linkage.lcims.base.po.business.BdServiceType;
import com.linkage.util.exception.DAOException;

/**
 * @author Administrator
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class ServiceTypeDAOImpl extends HibernateBaseDAOImpl implements
		ServiceTypeDAO {

	/**
	 * 
	 */
	public ServiceTypeDAOImpl() {
		super();
		// TODO Auto-generated constructor stub
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.linkage.lcims.base.dao.business.interfaces.ServiceTypeDAO#getAll()
	 */
	@SuppressWarnings("unchecked")
	public List<BdServiceType> getAll() throws Exception {
		// TODO Auto-generated method stub
		return this.getAll(BdServiceType.class);
	}

	public void deleteServiceType(BdServiceType bdServiceType)
			throws DAOException {
		this.delete(BdServiceType.class, bdServiceType.getServicetype());
	}

	public void saveServiceType(BdServiceType bdServiceType)
			throws DAOException {
		this.save(bdServiceType);
	}

	public void updateServiceType(BdServiceType bdServiceType)
			throws DAOException {
		this.merge(bdServiceType);
	}

}
